package com.caocaog.market.entity.vo;

import com.caocaog.market.entity.GoodsCategories;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * 进入店铺后，获取的所有商品信息数据展示对象
 *
 * @author chechen
 * @date 2022-04-12
 */
@Getter
@Setter
@NoArgsConstructor
@Accessors(chain = true)
public class AllGoodsVO implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("商品分类id")
    private String id;

    @ApiModelProperty("商品分类名称")
    private String name;

    @ApiModelProperty("商品集合")
    private List<GoodsVO> goodsList;

    public AllGoodsVO(GoodsCategories goodsCategories) {
        this.id = goodsCategories.getId();
        this.name = goodsCategories.getName();
    }
}
